import request from '@/utils/request'

// 查询项目产品列表
export function listProjectProductInfo(query) {
  return request({
    url: '/project/projectProductInfo/list',
    method: 'get',
    params: query
  })
}

// 查询项目产品详细
export function getProjectProductInfo(id) {
  return request({
    url: '/project/projectProductInfo/' + id,
    method: 'get'
  })
}

// 新增项目产品
export function addProjectProductInfo(data) {
  return request({
    url: '/project/projectProductInfo',
    method: 'post',
    data: data
  })
}

// 修改项目产品
export function updateProjectProductInfo(data) {
  return request({
    url: '/project/projectProductInfo',
    method: 'put',
    data: data
  })
}

// 删除项目产品
export function delProjectProductInfo(id) {
  return request({
    url: '/project/projectProductInfo/' + id,
    method: 'delete'
  })
}

// 删除项目产品
export function delProjectProductInfoByProjectId(projectId) {
  return request({
    url: '/project/projectProductInfo/productInfo/' + projectId,
    method: 'delete'
  })
}

